xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
  xml.channel do
    xml.title "Recipes"
    xml.description "Lots of recipes"
    xml.link formatted_recipe_url(:rss)

    for recipe in @recipes
      xml.item do
        xml.title recipe.title
        xml.description recipe.description
        xml.pubDate recipe.created_at.to_s(:rfc822)
        xml.link formatted_recipe_url(recipe, :rss)
      end
    end
  end
end
